package io.kiki.sba.registry.server.clientInterface.remoting;

import io.kiki.sba.registry.server.clientInterface.bootstrap.Config;
import io.kiki.sba.registry.server.shared.remoting.ServerSideExchanger;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;


public class ClientNodeExchanger extends ServerSideExchanger {
    private static final Logger logger = LoggerFactory.getLogger(ClientNodeExchanger.class);
    @Autowired
    private Config config;

    @Override
    public int getRpcTimeoutMillis() {
        return config.getClientNodeExchangeTimeoutMillis();
    }

    @Override
    public int getServerPort() {
        return config.getServerPort();
    }
}
